package com.lyrcsoft.mapstruct;

import com.lyrcsoft.mapstruct.cmd.UserDetailRequest;
import com.lyrcsoft.mapstruct.cmd.UserRequest;
import com.lyrcsoft.mapstruct.convert.UserConvert;

/**
 * @author fujc2dev@126.com
 * @version 1.0
 * @date 2025/9/19 11:17
 */
public class UserDetailRequestTest {
    public static void main(String[] args) {
        // 创建 UserDO 对象
        UserRequest userRequest = new UserRequest()
                .setId(1111).setUsername("yudaoyuanma").setPassword("buzhidao");
        // 进行转换
        UserDetailRequest userDetailBO = UserConvert.INSTANCE.convert(userRequest);
        System.out.println(userDetailBO.getUserId());
    }
}
